package o;

import android.view.View;
import com.google.android.material.tabs.TabLayout;
import java.lang.ref.WeakReference;

public class pi extends SkinAttr {

    static final class a extends fkz<SkinAttr, Integer> {
        private WeakReference<TabLayout> ॱ;

        public /* synthetic */ void ॱ(Object obj) {
            ॱ((Integer) obj);
        }

        private a(TabLayout tabLayout) {
            this.ॱ = new WeakReference(tabLayout);
        }

        public void ॱ(Integer num) {
            TabLayout tabLayout = (TabLayout) this.ॱ.get();
            if (tabLayout != null) {
                gcw.ˋ(tabLayout, num.intValue());
            }
        }
    }

    public pi() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof TabLayout) {
            TabLayout tabLayout = (TabLayout) view;
            if ("color".equals(this.attrValueTypeName)) {
                this.ʽ = "color";
                fks.ˎ(view.getContext(), this, new a(tabLayout)).ॱ(z);
            }
        }
    }
}
